home *** CD-ROM | disk | FTP | other *** search
- Path: news.easynet.co.uk!usenet
- From: Scarecrow <scarecrow@easynet.co.uk>
- Newsgroups: comp.lang.c++,comp.os.linux.setup
- Subject: G++ and math.h
- Date: Tue, 09 Apr 1996 17:40:36 +0100
- Organization: Easynet Ltd.
- Message-ID: <316A9304.6E1B@easynet.co.uk>
- NNTP-Posting-Host: scarecrow.easynet.co.uk
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (Win95; I)
-
- Dear All,
-
- I am having problems compiling code which uses the math.h
- header. I have included the header correctly, but when I compile using
- g++ 2.7.0 with -o and -m486 options I get several errors looking like
- this:
-
- "/tmp/cca001502.o(.text+0x1ce): undefined reference to 'sin'"
-
- There is one error for every trig equation in the code. At
- university I have to use a -l m option, but my linux version has never
- heard of it.
-
- I also compiled it with borland 3.51 under DOS and it compiled
- fine, but as the code is a Roff pre-processor I have no idea if it works
- as I need a Linux executable.
-
- Thanks for your help,
-
- James Purbrick.
-